package com.wang.kafkastudy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName message
 */
@TableName(value ="message")
@Data
public class Message implements Serializable {
    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息内容
     */
    @TableField(value = "message")
    private String message;

    /**
     * 发往的topics
     */
    @TableField(value = "topics")
    private String topics;

    /**
     * 消息的偏移
     */
    @TableField(value = "offset")
    private String offset;

    /**
     * 消息发送是否成功 0 成功 1 失败
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private String createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}